94ca6d4083a47cd4f88bcac2a2a7cacc82d8da19,platform/platform-api/src/com/intellij/execution/util/ExecUtil.java,ExecUtil,sudoCommand,#GeneralCommandLine#String#,185

Before Change


      command.add(0, "pkexec");
      command.add(1, "env");
      int i = 2;
      for (Map.Entry<String, String> entry : commandLine.getEnvironment().entrySet()) {
        command.add(i++, entry.getKey() + "=" + escapeUnixShellArgument(entry.getValue()));
      }
      sudoCommandLine = new GeneralCommandLine(command);
    }

After Change


      command.add(0, "pkexec");

      //workaround for RUBY-16963
      String homeDirectory = commandLine.getEnvironment().get("HOME");
      if (hasSh.getValue() && homeDirectory != null) {
        String escapedCommandLine = StringUtil.join(command, new Function<String, String>() {
          @Override